package com.linn.home.dao;

import com.linn.home.entity.Node;
import com.linn.home.entity.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 角色dao
 * Created by Administrator on 2018/8/9.
 */
@Repository("roleDao")
public interface RoleDao {

    List<Role > findRoleList();

    int addRole(Role role);

    int updateRole(Role role);

    int deleteRole(Role role);

    int batchRemoveRole(int[] ids);

    Role findRoleById(int id);

    List<Node> findRoleMenuByRoleId(Integer roleId);
}
